package org.pjx.spm.controller;

import org.pjx.spm.pojo.User;
import org.pjx.spm.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Glow
 * @Date 2022-01-27 13:03:45
 * @Description
 * @Version 1.0
 */

@RestController
public class testController {
    @RequestMapping(value = "/tests",method = RequestMethod.GET)
    public String sbtest()
    {
        return "test?";

    }
    @Autowired
    private UserServiceImpl userService;
@RequestMapping("testsql")
    public String sqltest()
{
    User user = new User();
    user.setUserId("aaa");
    user.setPassword("123");
  return String.valueOf(userService.accountIsTrue(user.getUserId(),user.getPassword()));
}
}
